package com.mapper;

import com.pojo.Person;
import org.apache.ibatis.annotations.One;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

/**
 * @author lenove
 @@ -24,4 +28,8 @@ public interface PersonMapper {

 Person findPersonById(Integer i);

 @Select("SELECT * FROM tb_person WHERE id = #{id}")
 @Results({@Result(column = "card_id",property = "card",one = @One(select = "com.mapper.IdCardMapper.selectIdCardById"))})
 Person selectPersonById(int id);

 }